﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Othello_Game
{
    public class OldBoardPositionsValues : IPositionsValues
    {
        #region IPositionsValues Members

        public int this[Position index]
        {
            get 
            {
                if (index.Row == 0 || index.Row == 7) return 50;
                if (index.Column == 0 || index.Column == 7) return 50;

                if (index.Row == 1 && index.Column > 0 && index.Column < 7) return 1;
                if (index.Row == 6 && index.Column > 0 && index.Column < 7) return 1;

                if (index.Column == 1 && index.Row > 0 && index.Row < 7) return 1;
                if (index.Column == 6 && index.Row > 0 && index.Row < 7) return 1;

                return 3; 
            }
        }

        public int this[int row, int col]
        {
            get { return this[new Position(row, col)] ; }
        }

        #endregion
    }
}
